package com.bnz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {


    @GetMapping("/index")
    public String index(Model model){

        model.addAttribute("name","张三");
        return "/index";
    }

    @GetMapping("demoForm")
    public String demo(){
        return "demoForm";
    }
}
